import request from "../../utils/request"
export function channelList(params: any) {
    return request({
        method: "get",
        url: `/tienchin/channel/list`,
        params
    })
}
export function channelSearch(params: any) {
    return request({
        method: "get",
        url: `/tienchin/channel/list`,
        params
    })
}
export function channelOut(data: any) {
    return request({
        method: "post",
        url: "/tienchin/channel/export",
        data,
        // 设置服务器返回的数据类型是个二进制文件对象（blob）
        responseType: "blob"
    })
}
export function channeAdd(data: any) {
    return request({
        method: "post",
        url: "/tienchin/channel",
        data
    })
}
export function channeEdit(id: any) {
    return request({
        method: "get",
        url: "/tienchin/channel/" + id,
    })
}
export function channeEdits(data: any) {
    return request({
        method: "put",
        url: "/tienchin/channel",
        data
    })
}
export function channelDel(id: any) {
    return request({
        method: "delete",
        url: `/tienchin/channel/` + id,
    })
}


